package com.flea.hclv.model.dao;

import com.flea.hclv.model.entity.HCarReserve;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

public interface HCarReserveMapper {
    int deleteByPrimaryKey(String id);

    int insert(HCarReserve record);

    int insertSelective(HCarReserve record);

    HCarReserve selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(HCarReserve record);

    int updateByPrimaryKey(HCarReserve record);

    List<HCarReserve> selectAll(RowBounds rowBounds);

    List<HCarReserve> selectFleetDeptUuid(RowBounds rowBounds,
                                          @Param("deptUuid") String deptUuid,
                                          @Param("reserveStatus")String reserveStatus,
                                          @Param("payStatus")String payStatus);

    List<HCarReserve> selectByUseDeptUuid(RowBounds rowBounds,
                                          @Param("deptUuid") String deptUuid,
                                          @Param("reserveStatus") String reserveStatus,
                                          @Param("reserveStatus2") String reserveStatus2);

    List<HCarReserve> selectMyCarReserveList(RowBounds rowBounds, @Param("userId") String userId, @Param("reserveStatus") String reserveStatus);
}